package com.srlg.app.model.po;

import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @desc:
 * @author: srlg li
 * @date: 2023/12/3 00:05
 */
@TableName("tb_order")
@Data
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String orderCode;
    private Integer status;
    private String name;
    private BigDecimal price;
    private int deleteFlag;
    private Date createTime;
    private Date updateTime;
    private String createUserCode;
    private String updateUserCode;
    private Integer version;
    private String remark;

    public static void main(String[] args) {
        Order order = new Order();
        order.setOrderCode("");
        order.setName("订单一");
        order.setPrice(BigDecimal.valueOf(12));
        order.setCreateUserCode("srlg");
        order.setUpdateUserCode("srlg");
        order.setVersion(1);
        order.setRemark("备注");

        String s = JSONUtil.toJsonStr(order);
        System.out.println(s);
    }
}
